import React, { Component } from 'react'
import PorpTypes from 'prop-types';
export default class Header extends Component {
    static defaultProps={
        title:"主题"
    }
    static porpTypes={
        title:PorpTypes.string
    }
    render() {
        return (
            <div className='header'>
                <span className='left'>{this.props.left}</span>
                <span className='center'>{this.props.title}</span>
                <span className='right'>{this.props.right}</span>
            </div>
        )
    }
}

